package com.zcn.io.web.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zcn.io.common.entity.TransferPhone;
import com.zcn.io.web.api.dto.DictDto;
import com.zcn.io.web.api.query.OrderMainQuery;
import com.zcn.io.web.api.vo.PhoneCardVo;
import com.zcn.io.web.api.vo.TransferPhoneVo;
import com.zcn.io.web.api.vo.phoneCard.NegotiationPhoneCardVo;
import com.zcn.io.web.api.vo.phoneCard.TrusteeshipPhoneCardVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @desc:
 * @author: 202438 邱建伟
 * @date: 2024/9/27 12:32
 * @Copyright (c) 2024, 江苏金恒信息科技股份有限公司
 */
@Mapper
public interface TransferPhoneMapper extends BaseMapper<TransferPhone> {
    List<TransferPhoneVo> list(@Param("query") TransferPhone transferPhone);

    List<DictDto> dict();

    List<PhoneCardVo> getPhoneCardList(@Param("query") OrderMainQuery orderMain);
    List<PhoneCardVo> getPhoneCardListPlus(@Param("query") OrderMainQuery orderMain);

    List<TransferPhone> listAllActivePhone();

    List<TrusteeshipPhoneCardVo> listAllActiveTrusteeship();

    List<NegotiationPhoneCardVo> listAllActiveNegotiation();

    TransferPhone getPhoneUseMemo();

    void updatePhoneUseMemo(String phoneUseMemo);
}
